package cop;

import resources.ResMgr;
import resources.Sprite;
import utils.MyException;
import engine.Room;

public class COPTwoPlayer extends Room {

	public COPTwoPlayer(int width, int height) {
		super(width, height);
	}

	@Override
	protected void initialize() {
		// ROOM
		setName("GameTwo");
		try {
			setSpr("carnival");
			setSprXScale(0.8f);
			setSprYScale(0.68f);
			((Sprite) ResMgr.get().get("carnival")).resetOrigin();
		} catch (MyException e) {}
		setSprSpeed(0.25f);
		// ACTORS
		addActor(new Cannon(), (float) getSize().getWidth() - 64, (float) getSize().getHeight() - 32);
		addActor(new Cannon(), 64, (float) getSize().getHeight() - 32);
		System.out.println(getActors());
	}

	@Override
	protected void close() {}

}
